<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<%
String path = request.getContextPath();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>新增优惠券</title>
  </head>
  
  <body>
	<div class="pageContent">
		<form method="post" action="<%=path %>/favourable/saveFavourable.action" class="pageForm required-validate" onsubmit="return ifarmeCallback(this,navTabAjaxDone);" enctype="multipart/form-data">
			<div class="pageFormContent" layoutH="56">
				<p>
					<label>优惠券名：</label>
					<input name="favourableVO.name"  class="required" type="text" size="30" alt="请输入优惠券名"/>
				</p>
				<p>
					<label>代金金额：</label>
					<input name="favourableVO.value"  class="required" type="text" size="30" alt="请输入代金金额"/>
				</p>
				<p>
					<label>优惠券简要描述：</label>
					<input name="favourableVO.simpleDescription"  class="required" type="text" size="30" alt="请输入优惠券简要描述"/>
				</p>
				<p>
					<label>优惠券详情：</label>
					<input name="favourableVO.detail"  class="required" type="text" size="30" alt="请输入优惠券详情"/>
				</p>
				<p>
					<label>优惠券图片：</label>
						<input name="image" type="file" size="30"/>
				</p>
				<p>
					<label>优惠券开始使用时间：</label>
					<input name="favourableVO.begTime"  class="date" type="text" size="30" />
				</p>
				<p>
					<label>优惠券结束使用时间：</label>
					<input name="favourableVO.endTime"  class="date" type="text" size="30" />
				</p>
				<p>
					<label>是否到期提醒：</label>
				    <s:select name="favourableVO.isRemind" list="%{#{1:'是',0:'否'}}" listKey="key" listValue="value"></s:select>
				</p>
				<p>
					<label>提醒方式：</label>
					<input name="favourableVO.remindManner" class="required" type="text" size="30" alt="请输入提醒方式"/>
				</p>
				<p>
					<label>提醒内容：</label>
					<input name="favourableVO.remindContent"  class="required" type="text" size="30" alt="请输入提醒内容"/>
				</p>
				<p>
					<label>是否手机使用验证：</label>
					<s:select name="favourableVO.isAuthenByMoblie" list="%{#{1:'是',0:'否'}}" listKey="key" listValue="value"></s:select>
				</p>
				<p>
					<label>优惠券类别：</label>
			 	<!--  	<s:select list="favourableTypeList" listKey="id" listValue="favourableType" name="favourableVO.favourableTypeId" class="required" ></s:select> -->
				</p>
				<p>
					<label>店面编码：</label>
					<input name="favourableVO.shopCode"  class="required" type="text" size="30" alt="请输入店面编码"/>
				
				</p>
				<p>
					<label>商户编码：</label>
					<input name="favourableVO.customerCode" class="required" type="text" size="30" alt="请输入商户编码"/>
				</p>
			</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li>
						<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
					</li>
				</ul>
			</div>
		</form>
	</div>
  </body>
</html>